/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package uit.ieproject.utilites;

import java.sql.Connection;
import java.sql.DriverManager;

/**
 *
 * @author Maivia
 */
public class DbConnection {

    public static Connection getConnection() {

        Connection con = null;
        try {
            Class.forName(Info.DRIVER_CLASS_NAME);
            con = DriverManager.getConnection(Info.CONNECTION_STRING, Info.USERNAME, Info.PASSWORD);
        } catch (Exception ex) {
            System.out.println("Connection Error!!!");
        }
        return con;
    }
}
